# 账号密码登录，给定管理员账户root密码123456   输入账号密码，正确提示登录，错误提示账号密码错误，错误三次即提示错误超过三次登录失败

num = 0
while num < 3:
    num += 1
    username = input("请输入账号:")
    password = input("请输入密码:")
    if username == "root" and password == "123456":
        print("登陆成功")
        break
    elif username == "" and password == "":
        print("账号密码不允许为空")
    else:
        if num == 3:
            print("登录失败")
        else:
            print("账号密码错误，请重新输入!!")

